<%--
  Created by IntelliJ IDEA.
  User: lzy
  Date: 2024/10/31
  Time: 23:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java"  isELIgnored="false" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" href="../../static/layui/css/layui.css">
</head>
<body>
<form action="/student/addSave" method="post" >
    <!--20行name需要改和数据库表中值相同-->
    <div class="layui-form-item">
        <label class="layui-form-label">学号</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="studentNum" class="layui-input">
        </div>
    </div>
    <!--27行需要改和数据库表中值相同-->
    <div class="layui-form-item">
        <label class="layui-form-label">姓名</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="studentName" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">性别</label>
        <div class="layui-input-inline layui-input-wrap">
            <select name="gender" class="layui-input" required>
                <option value=""  ${defaultValue==""?"selected":""}>请选择</option>
                <option value="0" ${defaultValue==0?"selected":""}>男</option>
                <option value="1" ${defaultValue==1?"selected":""}>女</option>
                <option value="2" ${defaultValue==2?"selected":""}>保密</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">年龄</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="age" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">出生日期</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" id="birthday" name="birthday" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">班级编号</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="classId" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">宿舍编号</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="hostelId" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">联系电话</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="studentPhone" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">邮箱地址</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="studentEmail" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">家庭地址</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="homeAddress" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">紧急联系人姓名</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="emergencyContact" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">紧急联系人电话</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="emergencyPhone" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">专业</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="major" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">学生状态</label>
        <div class="layui-input-inline layui-input-wrap">
            <select name="status" class="layui-input" required>
                <option value="" ${defaultValue==""?"selected":""}>请选择</option>
                <option value="0" ${defaultValue==0?"selected":""}>在读</option>
                <option value="1" ${defaultValue==1?"selected":""}>毕业</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">删除标志</label>
        <div class="layui-input-inline layui-input-wrap">
            <select name="delFlag" class="layui-input" required>
                <option value="" ${defaultValue==""?"selected":""}>请选择</option>
                <option value="0" ${defaultValue==0?"selected":""}>未删除</option>
                <option value="1" ${defaultValue==1?"selected":""}>已删除</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">创造者</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="createBy" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">创造时间</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" id="createDate"name="createDate" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">备注</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="remark" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button type="submit" class="layui-btn" lay-submit lay-filter="demo1">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
    <script src="/static/layui/layui.js"></script>
    <script>
    layui.use(function(){
        var laydate = layui.laydate;
        laydate.render({
            elem: '#birthday'
            });
    });
    </script>
    <script src="/static/layui/layui.js"></script>
    <script>
        layui.use(function(){
            var laydate = layui.laydate;
            laydate.render({
                elem: '#createDate'
            });
        });
    </script>

</form>
</body>
</html>
